package memento_pattern;

/**
 * @author 申书航
 * @version 1.0
 * 棋盘备忘录类，用于保存棋盘状态
 */
public class ChessboardMemento {

    private final char[][] chessmen;

    /**
     * 构造函数，初始化棋盘备忘录
     * @param chessmen 当前棋盘的状态
     */
    ChessboardMemento(char[][] chessmen) {
        this.chessmen = chessmen;
    }

    /**
     * 获取当前棋盘的状态
     * @return 返回棋盘状态
     */
    char[][] getChessmen() {
        return this.chessmen;
    }
}
